<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>VSCode + Cline + Gemini 2.5 Pro：打造你的 AI 编程助手</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
        }
        .serif-font {
            font-family: 'Noto Serif SC', serif;
        }
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-weight: bold;
            flex-shrink: 0;
        }
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 8px;
            padding: 1rem;
            font-family: 'Consolas', 'Monaco', monospace;
            overflow-x: auto;
        }
        .floating-icon {
            animation: float 3s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        .section-divider {
            height: 2px;
            background: linear-gradient(to right, transparent, #e5e7eb, transparent);
            margin: 4rem 0;
        }
        img {
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <div class="floating-icon inline-block mb-6">
                <i class="fas fa-robot text-6xl opacity-90"></i>
            </div>
            <h1 class="text-5xl md:text-6xl font-bold mb-6 serif-font">
                VSCode + Cline + Gemini 2.5 Pro
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">
                打造你的 AI 编程助手，让代码编写更智能、更高效
            </p>
            <div class="flex justify-center space-x-6 text-lg">
                <div class="flex items-center">
                    <i class="fas fa-code mr-2"></i>
                    <span>智能代码生成</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-bug mr-2"></i>
                    <span>错误修复</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-lightbulb mr-2"></i>
                    <span>代码解释</span>
                </div>
            </div>
        </div>
    </section>

    <!-- Introduction Section -->
    <section class="py-16 px-6">
        <div class="max-w-4xl mx-auto">
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12 card-hover">
                <h2 class="text-3xl font-bold mb-6 gradient-text flex items-center">
                    <i class="fas fa-info-circle mr-3"></i>
                    介绍
                </h2>
                <div class="prose prose-lg text-gray-700 leading-relaxed">
                    <p class="mb-4">
                        在软件开发领域，AI 编程助手正在成为提升生产力的革命性工具。它们能够帮助我们生成代码、解释逻辑、修复错误、撰写测试用例，甚至重构代码结构。
                    </p>
                    <div class="grid md:grid-cols-3 gap-6 my-8">
                        <div class="text-center p-6 bg-purple-50 rounded-xl">
                            <i class="fab fa-google text-4xl text-purple-600 mb-3"></i>
                            <h3 class="font-bold text-lg mb-2">Gemini 2.5 Pro</h3>
                            <p class="text-sm text-gray-600">Google DeepMind 推出的下一代高性能 AI 模型</p>
                        </div>
                        <div class="text-center p-6 bg-blue-50 rounded-xl">
                            <i class="fas fa-code text-4xl text-blue-600 mb-3"></i>
                            <h3 class="font-bold text-lg mb-2">VSCode</h3>
                            <p class="text-sm text-gray-600">最流行的轻量级代码编辑器</p>
                        </div>
                        <div class="text-center p-6 bg-green-50 rounded-xl">
                            <i class="fas fa-puzzle-piece text-4xl text-green-600 mb-3"></i>
                            <h3 class="font-bold text-lg mb-2">Cline</h3>
                            <p class="text-sm text-gray-600">连接多个 AI 模型的 VSCode 扩展</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <div class="section-divider"></div>

    <!-- Installation Steps -->
    <section class="py-16 px-6">
        <div class="max-w-5xl mx-auto">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">
                <i class="fas fa-download mr-3"></i>
                安装步骤
            </h2>
            
            <!-- Step 1 -->
            <div class="mb-12">
                <div class="flex items-start mb-6">
                    <div class="step-number mr-4">1</div>
                    <div class="flex-1">
                        <h3 class="text-2xl font-bold mb-3">安装 Visual Studio Code</h3>
                        <p class="text-gray-700 mb-4">
                            如果您尚未安装，请访问 <a href="https://code.visualstudio.com/" class="text-purple-600 hover:underline">VSCode 官网</a> 下载并安装适用于您操作系统的版本。
                        </p>
                    </div>
                </div>
                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1757738794865-7fd030e4-e8b1-412f-8df0-3c4ef4f8fa28.png" alt="VSCode 官网" class="w-full">
            </div>

            <!-- Step 2 -->
            <div class="mb-12">
                <div class="flex items-start mb-6">
                    <div class="step-number mr-4">2</div>
                    <div class="flex-1">
                        <h3 class="text-2xl font-bold mb-3">安装 Cline 扩展</h3>
                        <ol class="list-decimal list-inside space-y-2 text-gray-700">
                            <li>打开 VSCode。</li>
                            <li>使用快捷键 <code class="bg-gray-200 px-2 py-1 rounded">Ctrl+Shift+X</code> (Windows/Linux) 或 <code class="bg-gray-200 px-2 py-1 rounded">Cmd+Shift+X</code> (Mac) 打开扩展市场。</li>
                            <li>在搜索框中输入 <code class="bg-gray-200 px-2 py-1 rounded">Cline</code>。</li>
                        </ol>
                    </div>
                </div>
                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1757738841274-e23d019c-401f-4339-8f4d-bff7241a2345.png" alt="搜索 Cline 扩展" class="w-full mb-6">
                <p class="text-gray-700 mb-4">4. 找到由 <code class="bg-gray-200 px-2 py-1 rounded">Cline.ai</code> 发布的扩展程序，点击"安装"按钮。</p>
                <p class="text-gray-700 mb-4">5. 安装成功后在右侧</p>
                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1757739266008-224ad32d-92a7-4d11-abb8-a77adb5e5d03.png" alt="Cline 安装成功" class="w-full">
            </div>

            <!-- Step 3 -->
            <div class="mb-12">
                <div class="flex items-start mb-6">
                    <div class="step-number mr-4">3</div>
                    <div class="flex-1">
                        <h3 class="text-2xl font-bold mb-3">获取 Google AI Studio API 密钥</h3>
                        <p class="text-gray-700 mb-4">要让 Cline 与 Gemini 对话，你需要一个 API 密钥。</p>
                        <ol class="list-decimal list-inside space-y-2 text-gray-700">
                            <li>访问 <a href="https://aistudio.google.com/apikey" class="text-purple-600 hover:underline">Google AI Studio</a>。</li>
                            <li>使用你的 Google 账号登录。</li>
                            <li>在界面中，你应该能找到创建或查看 API 密钥的选项（通常位于设置或个人信息区域）。</li>
                        </ol>
                    </div>
                </div>
                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1757738924986-21907481-3100-444c-a59b-8a754249af76.png" alt="Google AI Studio" class="w-full mb-6">
                <p class="text-gray-700 mb-4">4. 生成一个新的 API 密钥并<strong>妥善保管</strong>。它看起来像一串长字符：<code class="bg-gray-200 px-2 py-1 rounded">AIzaSyB...</code>。</p>
                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1757738988083-31d28d48-2423-406c-9d1c-a59b172a3491.png" alt="API 密钥" class="w-full">
            </div>
        </div>
    </section>

    <div class="section-divider"></div>

    <!-- Gemini Balance Section -->
    <section class="py-16 px-6 bg-gradient-to-br from-purple-50 to-blue-50">
        <div class="max-w-4xl mx-auto">
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                <h2 class="text-3xl font-bold mb-6 gradient-text flex items-center">
                    <i class="fas fa-server mr-3"></i>
                    搭建 gemini-balance
                </h2>
                <p class="text-gray-700 text-lg">
                    详细教程请参考：<a href="https://www.yuque.com/jtostring/may7od/fan2ctvsyykxogug" class="text-purple-600 hover:underline font-semibold">Gemini池搭建</a>
                </p>
            </div>
        </div>
    </section>

    <div class="section-divider"></div>

    <!-- Configuration Section -->
    <section class="py-16 px-6">
        <div class="max-w-5xl mx-auto">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">
                <i class="fas fa-cog mr-3"></i>
                在 Cline 中配置 gemini 代理
            </h2>
            
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                <p class="text-gray-700 mb-8">安装完成后，需要对 Cline 进行配置以使用你的 Gemini API 密钥。</p>
                
                <!-- Config Step 1 -->
                <div class="mb-10">
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <span class="step-number mr-3">1</span>
                        打开 Cline 设置
                    </h3>
                    <ol class="list-decimal list-inside space-y-2 text-gray-700 ml-12">
                        <li>在 VSCode 中，使用快捷键 <code class="bg-gray-200 px-2 py-1 rounded">Ctrl+,</code